package es.uji.viselab.sceneview;

import javax.swing.JPanel;

import es.uji.viselab.ViSeLabComponent;
import es.uji.viselab.experiment.ExperimentParameters;
import es.uji.viselab.math.Matrix4;
import es.uji.viselab.robot.Robot;
import es.uji.viselab.robot.RobotListener;
import es.uji.viselab.world.World;
import es.uji.viselab.world.WorldListener;


public abstract class SceneView implements RobotListener, WorldListener, ViSeLabComponent {
	
	protected Matrix4 robotPose;
	protected Matrix4 targetPose; 
	protected ExperimentParameters ep;

	public SceneView(ExperimentParameters ep){
	  this.ep=ep;	
	}
	public abstract JPanel getPanel();


	
	@Override
	public void robotConnected(Robot robot) {
		robotPose=robot.getPoseM();
	}

	@Override
	public void robotPositionChanged(Robot robot) {
		robotPose=robot.getPoseM();
	}
	
	@Override
	public void worldChanged(World world) {
		// TODO Auto-generated method stub
		
	}
}
